package com.acme.emailing;

import com.acme.domain.client.Client;

/**
 * Created by Student on 21.11.2014.
 */
public class Email {
    private Client client;
    private String emailAdress;
    private String letter;

    public Client getClient() {
        return client;
    }

    public String getEmailAdress() {
        return emailAdress;
    }

    public String getLetter() {
        return letter;
    }

    public Email(Client client, String emailAdress, String letter) {
        this.client = client;
        this.emailAdress = emailAdress;
        this.letter = letter;
    }

    @Override
    public String toString() {
        return emailAdress + ": " + client.getSalutation() + ", " + letter;
    }
}
